#ifndef MYQTITK_H
#define MYQTITK_H

#include <QtGui>
#include "ui_myqtitk.h"
#include "regidialog.h"

class RegistrationClass;

class MyQtItk : public QMainWindow
{
	Q_OBJECT

public:
	MyQtItk(QWidget *parent = 0, Qt::WFlags flags = 0);
	~MyQtItk();

private slots:
	void createRegistration();
	void createSegmentation();
	void createRestruction();
	void open();
	void save();
	void saveas();
	void print();
	void quit();
	void registrationAlgorithm1();
	void registrationAlgorithm2();
	void registrationAlgorithm3();
	void registrationToCompare();
	void compareToRegistration();


private:
	Ui::MyQtItkClass ui;

	RegistrationClass *reg;
	bool HasARegistrationProject;

	QWidget *centralWidget;
	QWidget *horizontalLayoutWidget;
    QHBoxLayout *horizontalLayout;  

	QPushButton *button;

	void createActions();
    void createMenus();
    void createToolBars();
    void createStatusBar();

	QTextEdit *textEdit;
    QListWidget *customerList;
    QListWidget *paragraphsList;


	QMenu *fileMenu;
	QMenu *newMenu;
    QMenu *helpMenu;
	QMenu *registrationMenu;
	QMenu *segmentationMenu;
	QMenu *restructionMenu;
    QMenu *viewMenu;
	QMenu *subregistration1Menu;

    QAction *registrationAct;
	QAction *segmentationAct;
	QAction *restructionAct;
	QAction *openAct;
	QAction *saveAct;
	QAction *saveasAct;
	QAction *printAct;
	QAction *quitAct;
	QAction *subregistration1Act;
	QAction *subregistration2Act;
	QAction *subregistration3Act;
	QAction *registrationToCompareAct;
	QAction *compareToRegistrationAct;

	QToolBar *fileToolBar;
    QToolBar *editToolBar;

};

#endif // MYQTITK_H
